<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
	<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="<%=request.getContextPath()%>/resource/css/index_work.css"
	rel="stylesheet" />
<script type="text/javascript"
	src="<%=request.getContextPath()%>/resource/js/jquery-1.8.2.min.js"></script>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	
	
	<div class="modal" id="articleModal" tabindex="-1" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">审核文章</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <!-- 文章的具体内容 -->
      <div class="modal-body" id="articleDetail">
        		
      </div>
      
    </div>
  </div>
</div>
	
<table>
  <tr>
    <th>id</th>
    <th>标题</th>
    <th>时间</th>
    <th>作者</th>
    <th>栏目</th>
    <th>分类</th>
    <th>状态</th>
    <th>热门</th>
  </tr>
  <c:forEach items="${articlePage.list }" var="article">
  <tr>
    <td>${article.id }</td>
    <td>
    	${article.title }
    </td>
    
    <td><fmt:formatDate value="${article.created}" pattern="yyyy-MM-dd"/></td>
    
    <td>${article.author==null?'未知':article.author.username }</td>
    
    <td>${article.channel.name }</td>
    <td>${article.category.name }</td>
    
    <td>
    	<c:choose>
    		<c:when test="${article.status==0 }">待审核</c:when>
    		<c:when test="${article.status==1 }">通过</c:when>
    		<c:when test="${article.status==2 }">被拒</c:when>
    	</c:choose>
    </td>
    <td>${article.hot==1?'是热门':'非热门' }</td>
  </tr>
  </c:forEach>
</table>
</body>
</html>
